<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="_cabecalho.jsp" %>
<h1>Gerenciamento Ingredientes</h1>
<div align="center">
<a href="ingrediente.jsp">Novo Ingrediente</a>
<!-- <a href="IngredienteIncluir?nome='muzzarela'&descricao='queijo e muzzarela'&medida='unidade'" >Incluir Novo</a>  -->
<br/><br/>
</div>
<table  class="table">
	<tr>
		<th>ID</th>
		<th>Nome</th>
		<th>Descricao</th>
		<th>Medida</th>				
	</tr>
      <c:forEach var="ingrediente" items="${requestScope.lista}">
        <tr>
          <td><c:out value="${ingrediente.id}" /></td>
          <td><c:out value="${ingrediente.nome}" /></td>
          <td><c:out value="${ingrediente.descricao}" /></td>
          <td><c:out value="${ingrediente.medida}"/></td>                              
          <td><a href="IngredienteObter?id=${ingrediente.id}">Alterar</a></td>
          <td><a href="IngredienteExcluir?id=${ingrediente.id}">Excluir</a></td>          
        </tr>
      </c:forEach>
    </table>
    <br/>
<%@include file="_rodape.jsp" %>       
</body>
</html>


